#! /bin/bash

c=$((RANDOM%100+1))
i=0
_price=0
while :
do
        if [ -z $_price ]
        then
                "you are 9"
                 continue
        fi


        read -p "please guess the price of bobo: " _price
        if (($_price>$c))
        then
                echo "this is much greater than it "
                        ((i++))
                elif (($_price<$c))
                then
                        echo "this is much less than it"
                                ((i++))
                        elif (($i>10))
                        then
                                echo "you are bajie"
                                        exit
                                elif (($i>2&&$i<5))
                                then
                                        echo "you are wukong"
                                                exit
                                        elif (($i==1))
                                        then
                                                echo "you are rulai"
                                         else
                                                 echo "bakabakabaka"

                                                        exit
        fi




done

